#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>

#include <unistd.h>

int main() {
	printf("NAME_MAX: %ld\n", pathconf(".",_PC_NAME_MAX));
	printf("PATH_MAX: %ld\n", pathconf(".",_PC_PATH_MAX));
	printf("PIPE_BUF: %ld\n", pathconf(".",_PC_PIPE_BUF));

	printf("OPEN_MAX: %ld\n", sysconf(_SC_OPEN_MAX));
	printf("PAGE_MAX: %ld\n", sysconf(_SC_PAGE_SIZE));
	printf("CHILD_MAX: %ld\n", sysconf(_SC_CHILD_MAX));
	printf("TICK_SEC: %ld\n", sysconf(_SC_CLK_TCK));
	printf("IOV_MAX: %ld\n", sysconf(_SC_IOV_MAX));
	printf("LINE_MAX: %ld\n", sysconf(_SC_LINE_MAX));
	printf("PTHREAD_STACK_MIN: %ld\n", sysconf(_SC_THREAD_STACK_MIN));
	printf("PTHREAD_KEYS_MAX: %ld\n", sysconf(_SC_THREAD_KEYS_MAX));
	printf("PTHREAD_THREADS_MAX: %ld\n", sysconf(_SC_THREAD_THREADS_MAX));
	return 0;
}
